package com.mdb.open.common.enums.trade.type;

import com.mdb.bc.api.enums.ApiEnum;

/**
 * @description: 附件类型
 * @author: zhengzonghui
 * @create: 2019-06-26 12:20
 **/
public enum AttachFileApiTypeEnum implements ApiEnum<String> {

    CLAIM_SUPPLEMENTARY_EXPLANATION("认领补充说明") {
        @Override
        public AttachFileTypeEnum getAttachFileTypeEnum() {
            return AttachFileTypeEnum.CLAIM_SUPPLEMENTARY_EXPLANATION;
        }
    },
    OUTWARD_PAYMENT_CERTIFICATE("汇出打款水单") {
        @Override
        public AttachFileTypeEnum getAttachFileTypeEnum() {
            return AttachFileTypeEnum.OUTWARD_PAYMENT_CERTIFICATE;
        }
    },
    LOAN_PAYMENT_CERTIFICATE("贷款放款打款水单") {
        @Override
        public AttachFileTypeEnum getAttachFileTypeEnum() {
            return AttachFileTypeEnum.LOAN_PAYMENT_CERTIFICATE;
        }
    },
    ;



    AttachFileApiTypeEnum(String text) {
        this.text = text;
    }


    //枚举描述
    private String text;
    /**
     * 分组函数
     *
     * @return
     */
    public abstract AttachFileTypeEnum getAttachFileTypeEnum();

    /**
     * 是否不允许为空
     *
     * @return
     */
    public boolean isAllowNull() {
        return false;
    }


    @Override
    public String getValue() {
        return this.name();
    }

    @Override
    public String getText() {
        return this.text;
    }


}